﻿@using Yelper.Web
@model ForgotPasswordModel

@{
    ViewBag.Title = "Forgot password";
}

<h1>I forgot my password!</h1>

@if (null != ViewData["success"] && (bool)ViewData["success"]) { 
<div class="success">A new password was emailed to you!</div>
}

@using (Html.BeginForm()) {

    <div class="FormItem">
        <div class="FieldInfo">
            @Html.LabelFor(x => x.Username)
        </div>
        <div class="Field">
            @Html.TextBoxFor(x => x.Username)
            @Html.ValidationMessageFor(x => x.Username)
        </div>    
    </div>
    
    <div class="FormItem">
        <div class="FieldInfo">
            @Html.LabelFor(x => x.Email)
        </div>
        <div class="Field">
            @Html.TextBoxFor(x => x.Email)
            @Html.ValidationMessageFor(x => x.Email)
        </div>    
    </div>
    
    <div class="FormButton">
        <input type="submit" value="Send me a new password" />
    </div>

}
